package com.qf.job;

import org.apache.shardingsphere.elasticjob.api.ShardingContext;
import org.apache.shardingsphere.elasticjob.simple.job.SimpleJob;
import org.springframework.stereotype.Component;

/**
 * @author 汤奇
 * @version V1.0
 * @Project BookPro
 * @Package com.qf.job
 * @Description: 自定义任务类
 * @Date 2022/7/11 19:09
 */
@Component
public class MyJob implements SimpleJob {
    @Override
    public void execute(ShardingContext shardingContext) {
        System.out.println("=======分布式任务执行了一次======");
    }
}
